package com.carrot.system.service.impl;

import com.carrot.common.core.domain.entity.SysPointStandardField;
import com.carrot.common.exception.ServiceException;
import com.carrot.common.mybatis.BaseServiceImpl;
import com.carrot.system.mapper.SysPointStandardFieldMapper;
import com.carrot.system.service.ISysPointStandardFieldService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * 场站 业务层处理
 *
 * @author liuhongzhen
 */
@Service
public class SysPointStandardFieldServiceImpl extends BaseServiceImpl<SysPointStandardFieldMapper, SysPointStandardField>
        implements ISysPointStandardFieldService {

    private static final Logger log = LoggerFactory.getLogger(SysPointStandardFieldServiceImpl.class);

    @Override
    @Transactional(rollbackFor = ServiceException.class)
    public void add(SysPointStandardField standardField) {

        this.save(standardField);
    }

    @Override
    @Transactional(rollbackFor = ServiceException.class)
    public void update(SysPointStandardField standardField) {
        this.updateById(standardField);
    }

    @Override
    @Transactional(rollbackFor = ServiceException.class)
    public void del(Long id) {

        this.removeById(id);
    }

    @Override
    @Transactional(rollbackFor = ServiceException.class)
    public void batchDel(List<Long> ids) {

        this.removeBatchByIds(ids);
    }
}
